<div class="b-pagename"><h1>Sign up</h1></div>

<form action="<?=Application::url()?>users/do_signup" method="POST" class="b-form">
	<fieldset>
		<legend>Enter new user details</legend>
		<?=form2_errors($__validation_errors__)?>
		<?=form2_input(array(
				'label' => 'Email Address:',
				'name' => 'email',
				'value' => set_value('email')));?>
		<?=form2_password(array(
				'label' => 'Password:',
				'name' => 'password')); ?>
		<?=form2_password(array(
				'label' => 'Repeat password:',
				'name' => 'rpassword')); ?>
		<?=form2_input(array(
				'label' => 'Display name:',
				'name' => 'name')); ?>
		<?=form2_input(array(
				'label' => 'Phone:',
				'name' => 'phone')); ?>
		<?=form2_submit('submit', 'Sign Up'); ?>
	</fieldset>
</form>